package stu.sup.entity;

import java.io.Serializable;
import java.util.Date;

public class Buycart implements Serializable {
    private Integer buycartId;

    private Integer userLoginId;

    private Integer productId;

    private Integer productNum;

    private Double productPrice;

    private Date addTime;

    private static final long serialVersionUID = 1L;

    public Buycart() {
    }

    public Buycart(Integer buycartId, Integer userLoginId, Integer productId, Integer productNum, Double productPrice, Date addTime) {
        this.buycartId = buycartId;
        this.userLoginId = userLoginId;
        this.productId = productId;
        this.productNum = productNum;
        this.productPrice = productPrice;
        this.addTime = addTime;
    }

    public Integer getBuycartId() {
        return buycartId;
    }

    public void setBuycartId(Integer buycartId) {
        this.buycartId = buycartId;
    }

    public Integer getUserLoginId() {
        return userLoginId;
    }

    public void setUserLoginId(Integer userLoginId) {
        this.userLoginId = userLoginId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", buycartId=").append(buycartId);
        sb.append(", userLoginId=").append(userLoginId);
        sb.append(", productId=").append(productId);
        sb.append(", productNum=").append(productNum);
        sb.append(", productPrice=").append(productPrice);
        sb.append(", addTime=").append(addTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}